Skip to content

build(deps): Update tree-sitter to 0.26.5 and all grammar dependencies#1225

Open
marlon-costa-dc wants to merge 1 commit intomozilla:masterfrom
marlon-costa-dc:feature/tree-sitter-0.26.5
Open

build(deps): Update tree-sitter to 0.26.5 and all grammar dependencies#1225
marlon-costa-dc wants to merge 1 commit intomozilla:masterfrom
marlon-costa-dc:feature/tree-sitter-0.26.5

Conversation

@marlon-costa-dc
Copy link
Contributor

Summary

Updates tree-sitter from 0.25.x to 0.26.5 and all related grammar/build dependencies.

Dependency updates

Crate From To
tree-sitter 0.25.3 0.26.5
tree-sitter-javascript 0.25.0
tree-sitter-python 0.25.0
tree-sitter-rust 0.24.0
tree-sitter-kotlin tree-sitter-kotlin-ng tree-sitter-kotlin-codanna 0.3.9
askama 0.15

Code changes

  • Node::child() API fix: tree-sitter 0.26 changed parameter from usize to u32 — updated child(pos)child(pos as u32)
  • Kotlin grammar macro: Added case for tree_sitter_kotlin_codanna::language() (function instead of LANGUAGE constant)
  • Regenerated language enums: Updated all src/languages/ files for new grammar node types

Related

Why tree-sitter-kotlin-codanna?

tree-sitter-kotlin-ng is no longer maintained. tree-sitter-kotlin-codanna (v0.3.9) provides active maintenance and tree-sitter 0.26 compatibility.

Test Plan

  • cargo check passes
  • All 251 existing tests pass (cargo test --workspace)
  • Single clean commit rebased on upstream/master

@marlon-costa-dc marlon-costa-dc force-pushed the feature/tree-sitter-0.26.5 branch from 6b8972b to 010c4d2 Compare February 25, 2026 13:22
@marco-c
Copy link
Collaborator

marco-c commented Feb 25, 2026

@marlon-costa-dc the table in your PR description is missing the "From" version of some of the dependencies.

@Luni-4
Copy link
Collaborator

Luni-4 commented Feb 25, 2026

@marlon-costa-dc

We’ve also lost the regeneration of the tree-sitter-mozcpp, tree-sitter-mozjs, tree-sitter-preproc, and tree-sitter-ccomment grammars that was previously included in #1214.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants